package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Dislike;
import com.example.studyplanning.mapper.DislikeMapper;
import com.example.studyplanning.services.DislikeServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DislikeServiceImpl implements DislikeServices {
    @Autowired
    private DislikeMapper dislikeMapper;

    @Override
    public Integer InsertDislike(Dislike dislike) {
        return dislikeMapper.InsertDislike(dislike);
    }

    @Override
    public Integer DelDislike(Integer userID, Integer tipsID) {
        return dislikeMapper.DelDislike(userID,tipsID);
    }

    @Override
    public List<Dislike> FindDislike(Integer userID, Integer tipsID) {
        return dislikeMapper.FindDislike(userID,tipsID);
    }
}
